<form action="{'ReturnSaleOrder/insert'|U}" method="POST" name="ReturnSale_addReturnOrder">
{wz action="save,list,reset"}
<input type="hidden" name="file_tocken" value="{$file_tocken}">
<div class="add_box">
<table cellspacing="0" cellpadding="0" class="add_table">
    <tbody>  
    	<tr>
    		<th colspan="4">{$lang.return_sale_order_basic}</th>
    	</tr>
    	<tr>
    		<td colspan="4">
    			<div class="basic_tb">  
					<ul> 
						<li>{$lang.return_sale_type}：
							{select data=C('RETURN_SALE_ORDER_TYPE') name="return_sale_order_type" id="return_sale_order_type" empty=true initvalue="1" onchange="getReturnSaleType(this)"  combobox=1}__*__ 
						</li>
						<li>{$lang.client_name}：
							<input type="hidden" name="client_id" id="client_id" > 
							<input type="text" name="client_name" id="client_name" url="{'AutoComplete/client'|U}" jqac />
							__*__
						</li>
						{company  type="li" title=$lang.basic_name require=""
							hidden=['name'=>'basic_id','id'=>'basic_id']
							name='basic_name'
						}
						{currency data=C('CLIENT_CURRENCY') name="currency_id" id="currency_id" value=$rs.currency_id type='li' title=$lang.currency_name require="" }
						<li>{$lang.return_sale_date}：
						{if C('digital_format')=='eur'}
							<input type="text" name="return_order_date"  id="return_order_date" class="Wdate spc_input" onClick="WdatePicker({ dateFmt:'dd/MM/yy HH:mm:ss'})" value="{$smarty.now|date_format:'%d/%m/%y %H:%M:%S'}"/>__*__
						{else}
							<input type="text" name="return_order_date"  id="return_order_date" class="Wdate spc_input" onClick="WdatePicker({ dateFmt:'yyyy-MM-dd HH:mm:ss'})" value="{$smarty.now|date_format:'%Y-%m-%d %H:%M:%S'}"/>__*__		
						{/if}
						</li>

					</ul>
				</div>
			</td>
		</tr>
    	<tr>
    		<th  colspan="4">{$lang.return_sale_order_detail}</th>
    	</tr>
    	<tr id="show_return_order">
    			<td colspan="4" class="t_center">
    			{include file="ReturnSaleOrder/return_detail.tpl"}
    			</td>
    			 
    	</tr>  
    	<tr id="show_sale_order_tr" class="none">
    		<th  colspan="4">{$lang.return_sale_detail}</th>
    	</tr>
    	<tr id="show_sale_order" class="none"> 
    		<td colspan="4" class="t_center">
    		{include file="ReturnSaleOrder/sale_detail.tpl"}
    		</td> 
    	</tr>
    	<tr >
    		<td colspan="4" align="left" class="pad_top_10">
    			<table cellspacing="0" cellpadding="0" width="100%">
    				<tr>
    					<td valign="top" class="t_right" width="20%">{$lang.return_sale_comments}：</td>
    					<td class="t_left" valign="top" width="80%">
    						<textarea name="comments" id="comments" class="textarea_height80"></textarea>
    					</td>    			
    				</tr>
    			</table>
    		</td>
    	</tr> 
 	</tbody>
</table>
{staff}
</div>
</form>